<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<title>摇一摇配置</title>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<script type="text/javascript" src="__STATIC__/jquery-1.11.3.js?v={:C('TKE_VERSION')}"></script>
	<link rel="stylesheet" href="__EXPO__/css/bootstrap.min.css?v={:C('TKE_VERSION')}" />
	<link rel="stylesheet" href="__EXPO__/css/bootstrap-datetimepicker.css?v={:C('TKE_VERSION')}" />
</head>
<body>
	<form class="form-horizontal" method="post" action="">
	    <div id="msg_box"></div>
	    <div class="form-actions">
			神器
		</div>
		<div class="control-group">
			<label class="control-label">第1名 :</label>
			<div class="controls">
				<input style="width:150px" length="11" type="text" class="ui-wizard-content datepicker span2" name="phone" value='{$phone}' >
			</div>
		</div>
		<div class="form-actions">
			<button class="btn btn-success" type="submit">提交</button>
		</div>
	</form>
	<script type="text/javascript">
		$(document).ready(function(){
			
			$("form").submit(function(){
				//锁定登录按钮
				$('button').attr('disabled',true);
				var self = $(this);
				$.post("{:U('/Expo/artifact')}", self.serialize(), call_back, "json");
				return false;
				
				/**
				 * @todo 接收登录返回值
				 * @author PHP@妖孽 <dino_ma@163.com>
				 */
				function call_back(data){
					if(data.status==1){
						tke_alert(data.info,'alert-success');
						$('button').attr('disabled',false);
						setTimeout(function(){
							location.reload();
						},1500);
					} else {
						$('button').attr('disabled',false);
						tke_alert(data.info,'alert-error');
					}
				}
			});
		});
	</script>
	<script type="text/javascript" src="__EXPO__/js/bootstrap-datetimepicker.min.js?v={:C('TKE_VERSION')}"></script> 
	<script type="text/javascript" src="__EXPO__/js/common.js?v={:C('TKE_VERSION')}"></script>
	<script type="text/javascript" src="__EXPO__/js/bootstrap.min.js?v={:C('TKE_VERSION')}"></script>
</body>
</html>